package com.gxa.logistics.domain.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.NotBlank;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;
import javax.validation.constraints.Size;
import java.io.Serializable;
import java.sql.Date;

@Data
@ApiModel(value = "角色添加实体")
public class RoleSaveDTO implements Serializable {

    @ApiModelProperty(name = "roleName",notes = "角色名称",dataType = "String",required = true)
    @NotBlank(message = "角色名称不能为空")
    @Size(min = 2, message = "角色名称：请输入至少2个字符")
    private String roleName;

    @ApiModelProperty(name = "remark", notes = "备注", dataType = "String", required = true)
    @NotBlank(message = "备注不能为空")
    private String remark;

}
